﻿using System;
using System.Collections.Generic;
using System.Xml;
using System.Text;

namespace BfLib.Web.RSS
{
    public class RSSItemGuid
    {
        private bool _isPermaLink;
        private string _value;

        public RSSItemGuid(XmlNode node)
        {
            if (node == null)
                return;

            this._value = node.Value;
            if (node.Attributes["isPermaLink"] != null)
                this._isPermaLink = String.Compare(node.Attributes["isPermaLink"].Value, "true") == 0;
        }

        public string Value
        {
            get
            {
                return _value;
            }
        }

        public bool IsPermaLink
        {
            get
            {
                return _isPermaLink;
            }
        }
    }
}
